using UnityEngine;
using System.Collections;

public class Poster : MonoBehaviour
{
	//public NotificationManager op_NotificationManager;

	// Use this for initialization
	void Start ()
	{

	}

	[HideInInspector]
	public int m_property = 100;
	// Update is called once per frame
	void Update ()
	{
		if (Input.GetKeyDown(KeyCode.LeftArrow))
		{
//			if (op_NotificationManager != null)
//				op_NotificationManager.PostNotification(this, GameEnum.EventType.OnUserPressLeft);
			NotificationManager.Instance.PostNotification(this, GameEnum.EventType.OnUserPressLeft);
		}
		if (Input.GetKeyDown(KeyCode.RightArrow))
		{
//			if (op_NotificationManager != null)
//				op_NotificationManager.PostNotification(this, GameEnum.EventType.OnUserPressRight);
			NotificationManager.Instance.PostNotification(this, GameEnum.EventType.OnUserPressLeft);
		}
		if (Input.GetKeyDown(KeyCode.UpArrow))
		{
//			if (op_NotificationManager != null)
//				op_NotificationManager.PostNotification(this, GameEnum.EventType.OnUserPressUp);
			NotificationManager.Instance.PostNotification(this, GameEnum.EventType.OnUserPressLeft);
		}
		if (Input.GetKeyDown(KeyCode.DownArrow))
		{
//			if (op_NotificationManager != null)
//				op_NotificationManager.PostNotification(this, GameEnum.EventType.OnUserPressDown);
			NotificationManager.Instance.PostNotification(this, GameEnum.EventType.OnUserPressLeft);
		}

	}


}

